library;

/// @description: 登录相关接口
/// @author tangzhentao
/// @created at 19:33 2024/12/31

class ApiLogin {
  /// 发送短信验证码 POST
  ///
  /// body {
  ///
  /// mobile [String] 手机号
  ///
  /// event [String] 可选值：login=登录，forgotPassword=忘记密码，editMobile=修改手机号，verifyMobile=验证手机号
  ///
  /// }
  static const sendSmsCode = 'sendSmsCode';

  /// 验证码登录 POST
  /// 万能验证码是234567
  ///
  /// body {
  ///
  /// mobile [String] 手机号
  ///
  /// captcha [String] 验证码
  ///
  /// }
  static const loginByCaptcha = 'loginByCaptcha';

  /// 账号密码登录 POST
  ///
  /// body {
  ///
  /// mobile [String] 手机号
  ///
  /// password [String] 密码
  ///
  /// }
  static const loginByPassword = 'loginByPassword';

  /// 找回密码 POST
  ///
  /// body {
  ///
  /// mobile [String] 手机号
  ///
  /// captcha [String] 验证码
  ///
  /// password [String] 新密码
  ///
  /// confirm_password [String] 确认密码
  ///
  /// }
  static const forgotPassword = 'forgotPassword';

  /// 完善资料 POST
  ///
  /// body {
  ///
  /// avatar [String] 头像地址，通过上传文件接口获取
  ///
  /// nickname [String] 用户昵称
  ///
  /// sex [String] 性别：N：未知、M：男、F：女
  ///
  /// birthday [String] 出身日期
  ///
  /// }
  static const completeProfile = 'completeProfile';

  /// 用户信息 POST
  static const userProfile = 'profile';

  /// 搜索用户 POST
  ///
  /// body {
  ///
  /// keywords [String] 关键词
  ///
  /// page [int] 页码
  ///
  /// }
  static const searchUser = 'searchUser';

  /// 验证手机号 POST
  ///
  /// body {
  ///
  /// mobile [String] 手机号
  ///
  /// captcha [String] 验证码
  ///
  /// }
  static const verifyMobile = 'verifyMobile';

  /// 换绑手机号 POST
  ///
  /// body {
  ///
  /// mobile [String] 手机号
  ///
  /// captcha [String] 验证码
  ///
  /// }
  static const editMobile = 'editMobile';

  /// 申请提现 POST
  ///
  /// body {
  ///
  /// amount [double] 提现金额
  ///
  /// }
  static const withdrawalCreate = 'withdrawal/create';

  /// 提现记录 POST
  ///
  /// body {
  ///
  /// page [int] 页码
  ///
  /// }
  static const withdrawalList = 'withdrawal/list';
}
